//
//  Bottombar
//
//  Created by Cody Nguyen on 2011-08-30.
//  Copyright (c) 2011 Cody Nguyen. All rights reserved.
//
package {
    import flash.display.MovieClip;
    public class BottomBar extends MovieClip {
        public function init() {
            var bottom_holder_mc:MovieClip = new MovieClip();
            bottom_holder_mc.graphics.drawRect(0, 0, 1300, 128);
            bottom_holder_mc.y = 792;
            addChild(bottom_holder_mc);
            var transparent_mc:transparent = new transparent();
            transparent_mc.width = 1300;
            transparent_mc.height = 128;
            transparent_mc.alpha = 0;
            bottom_holder_mc.addChild(transparent_mc);
            var bottomBar_mc:MovieClip = new MovieClip();
            bottomBar_mc.graphics.drawRect(0, 0, 1300, 128);
            bottomBar_mc.y = 128;
            bottom_holder_mc.addChild(bottomBar_mc);
            var bottom_bar_bg_mc:barBottom = new barBottom();
            bottomBar_mc.addChild(bottom_bar_bg_mc);
            bottom_holder_mc.addEventListener(MouseEvent.ROLL_OVER, showBottomBar);
            bottom_holder_mc.addEventListener(MouseEvent.ROLL_OUT, hideBottomBar);
            private function showBottomBar(event:MouseEvent):void {
                var showBottomTween:Tween = new Tween(bottomBar_mc, "y", Back.easeOut, 128, 0, 0.5, true);
            }
            private function hideBottomBar(event:MouseEvent):void {
                var hideBottomTween:Tween = new Tween(bottomBar_mc, "y", Back.easeIn, 0, 128, 0.4, true);
            }
        }
    }
}